﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PicStore.Model;

namespace PicStore.BLL.Interface
{
    public interface IRequestService
    {
        bool SaveDownloadRequest(int userId, DateTime fromDate, DateTime toDate, bool needDownloadPicture, string places, string sexs,
            string department, string phone, string mobile, string project, string leaderName, string comments, out string error);

        List<RequestInfo> GetRequestList(string userName, out int count, out int totalPages, int pageSize, int pageIndex = 1);

        List<RequestInfo> GetApprovedRequestList(string userName, out int count, out int totalPages, int pageSize,
                                                 int pageIndex = 1);

        void RejectRequestById(int requestId);
        RequestInfo GetRequestById(int requestId);

        void ApproveDownloadRequest(int requestId, string zipFileUrl);

        void DeleteRequestById(int id);
        void CleanOldRequest();
    }
}
